docs: Remove unused variables in shooter example
authorBenjamin Otte <otte@redhat.com>
Fri, 27 May 2011 02:22:52 +0000 (04:22 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 27 May 2011 14:11:09 +0000 (16:11 +0200)
docs/tools/shooter.c

index fa7e8459c227d732ba5c352ef1b73a2569c1fb30..1d3eeb26df664432eb3cbe08f4b29b6b67531e42 100644 (file)
@@ -121,8 +121,7 @@ take_window_shot (Window   child,
                  gboolean include_decoration)
 {
   GdkWindow *window;
-  Display *disp;
-  Window w, xid;
+  Window xid;
   gint x_orig, y_orig;
   gint x = 0, y = 0;
   gint width, height;
@@ -130,9 +129,6 @@ take_window_shot (Window   child,
   GdkPixbuf *tmp, *tmp2;
   GdkPixbuf *retval;
 
-  disp = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
-  w = GDK_ROOT_WINDOW ();
-
   if (include_decoration)
     xid = find_toplevel_window (child);
   else